package com.hmall.user.utils;

public class UserHolder {
    private static final ThreadLocal<Long> tt=new ThreadLocal<>();

    public static void setUser(Long id){
        tt.set(id);
    }

    public static Long getUser(){
        return tt.get();
    }

    public static void reUser(){
        tt.remove();
    }
}
